/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package collaborative.filter;

import collaborative.filter.Test.tests;
import java.io.IOException;
dfs
/**
 *
 * @author Jeff Christoffersen
 */
public class RecommendationSystem {

    /**
     * @param args the command line arguments
     * @throws java.io.IOException
     */
    public static void main(String[] args) throws IOException {
        int[] testRange = new int[]{Integer.parseInt(args[0]),Integer.parseInt(args[1])};
        tests[] testsToRun = {tests.GIVEN2, tests.GIVEN5, tests.GIVEN10, tests.ALLBUT1};    
//        tests testType;
/*        if(args[2].equals("ALLBUT1")){
            testType = tests.ALLBUT1;
        }else if(args[2].equals("GIVEN2")){
            testType = tests.GIVEN2;
        }else if(args[2].equals("GIVEN5")){
            testType = tests.GIVEN5;
        }else{
            testType = tests.GIVEN10;
        }
*/
//        for(int i=0; i<=2; i++){
//        System.out.println("i:"+i);
        for(tests testType : testsToRun){   
            System.out.println(testType);
            Test activeTest = new Test(testRange, testType, 0);
            activeTest.startTest();
        }
        //activeTest.printResults();
    
    
//    int[][] ratings1 = {{1,1},{2,2},{3,3},{4,4},{5,5}};
//    int[][] ratings2 = {{1,4},{2,5},{4,6}, {6,1}, {7,1}};
//    int[][] common = InverseUserFrequency.getCommonRatings(ratings1, ratings2, testRange);


//    double sum1 = DefaultVoting.Sum(ratings1);
//    
//    double sum2 = DefaultVoting.Sum(ratings1, 2);
//        double sum4 = DefaultVoting.Sum(ratings2);
//    double sum3 = DefaultVoting.Sum(ratings1, ratings2);

//    double n = DefaultVoting.findN(ratings1, ratings2);
//   System.out.println("sum1:" + sum1 + ", sum2:" + sum2);
//    System.out.println("sum3:" + sum3);
//    System.out.println("sum4:" + sum4);
//    System.out.println("n:" + n);
//    double wValue = DefaultVoting.getWValue(ratings1, ratings2);
  //  System.out.println("w:" + wValue);
    
    
    }
    
}
